package Report.cc;

import java.util.Random;

import static Report.cc.LetterGame.letter;

public class LetterThread implements Runnable {

    public  void run() {
        Random random = new Random();
        while (true) {
            char ch = (char) (random.nextInt(26) + 'A');
            letter.setText(""+ch);
            try {
                Thread.sleep(2000);
            } catch (InterruptedException ex) {
                ex.printStackTrace();
            }
        }
    }
}
